package com.admin.bean;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * banner图图片管理
 *
 * @author:HingLo
 * @create 2017-09-26 14:42
 **/
@Entity
@Table(name = "banner")
public class Banner {
    @Id
    private String id;
    /**
     * //可以是任何类型的id
     */
    private String rid;
    /***
     * //类型（软件，新闻，推荐博客）
     */
    private int typeid;
    /**
     * //介绍
     */
    private String contents;
    private Date ctime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endtime;
    /**
     * //图片
     */
    private byte[] icon;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRid() {
        return rid;
    }

    public void setRid(String rid) {
        this.rid = rid;
    }

    public int getTypeid() {
        return typeid;
    }

    public void setTypeid(int typeid) {
        this.typeid = typeid;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public byte[] getIcon() {
        return icon;
    }

    public void setIcon(byte[] icon) {
        this.icon = icon;
    }
}
